import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.net.URL;


public class Test {

	public static void main(String[] args) {

		URL url = Test.class.getResource("config.txt");
		String path = "src/config.txt";

		if(url == null){
			
			File file = new File(path);
			try {
				file.createNewFile();
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
		
		try {
			PrintWriter write = new PrintWriter(path); 
			write.println();
			write.println("asdfasdfasd");
			write.println("asdfasdfasd");
			write.println("asdfasdfasd");
			write.format("asdfasdf%d", 50);
			write.close();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
	}
}
